/*
 * Copyright 2007-2010 kingbi.
 * Creator: mouzb
 */
package com.kingbi.system.userRole.service;

import java.util.List;


import com.kingbi.system.userRole.model.UserRoleModel;

/**
 * @author mouzb
 *
 */
public interface UserRoleService {
	
	/**
	 * 添加记录
	 * @param packModel
	 */
	void saveUserRole(UserRoleModel userRoleModel) throws Exception;
	
	/**
	 * 根据orgCode读取一条记录
	 * @param userRoleID
	 * @return
	 */
	UserRoleModel loadUserRole(String userRoleID) throws Exception;
	
	/**
	 * 根据userRoleID删除一条记录
	 * @param packID
	 */
	void deleteUserRole(String userRoleID) throws Exception;
	
	/**
	 * 分页查询机构
	 * @param page
	 * @param max
	 * @return
	 */
	List<UserRoleModel> listUserRole(UserRoleModel userRoleModel,int start,int max) throws Exception;
	
	/**
	 * 验证一条记录
	 * @param page
	 * @param max
	 * @param sql_params
	 * @return
	 */
	public List<UserRoleModel> loadVerifyUserRole(int page, int max,Object[] sql_params) throws Exception;

	/**
	 * 获取符合条件的总记录数
	 * @param UserRoleModel
	 * @return
	 */
    long queryCount(UserRoleModel userRoleModel);
	
	
	
}
